<!DOCTYPE HTML>
<html>
  <head>
	<?php echo Yaf_View_Simple::render("header.phtml"); ?>
    <script type="text/javscript" src="/asset/admin/js/fileinput.js"></script>
  </head>
  <body>
	<?php echo Yaf_View_Simple::render("menu.phtml"); ?>
	<div class="container">
	  <div class="content">
		<form role="form" class="form-horizontal" id="beform" action="update">
		  <input type="hidden" name="id" value="<?php echo $nav['id']; ?>"/>
          
		  <fieldset>
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="link">Father Node:</label>
			  <div class="col-lg-4">
                <select class="form-control" name="fid">
                  <option value="0">Root</option>
                  <?php foreach($navs as $v){ ?>
                  <option value="<?php echo $v['id']; ?>" <?php if($v['id'] == $nav['fid']) echo 'selected'; ?> >
                    <?php echo $v['title']; ?>
                  </option>
                  <?php } ?>
                </select>
			  </div>
			</div>            
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="link">Link:</label>
			  <div class="col-lg-6">
				<input type="text" name="link" class="form-control" id="link" value="<?php echo $nav['link']; ?>"/>
			  </div>
			</div>            
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="title">Title:</label>
			  <div class="col-lg-6">
				<input type="text" name="title" class="form-control" id="title" value="<?php echo $nav['title']; ?>" />
			  </div>
			</div>
			<div class="form-group">
		      <label class="col-lg-2 control-label"></label>
		      <div class="col-lg-6">
		        <a  href="javascript:def.submit('#beform',null)" class="btn btn-primary">Submit</a>
		      </div>
            </div>
		  </fieldset>
		</form>

	  </div>
	</div>
	
	<!-- 模态框（Modal） -->
	<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modellabel" aria-hidden="true">
	  <div class="modal-dialog">
		<div class="modal-content">
		  <div class="modal-header bg-default">
			<div class="modal-title" id="modallabel">
			  <h5 class="text-primary">Signal</h5>
			</div>
		  </div>
		  <div class="modal-body bg-primary">
			
		  </div>
		  <div class="modal-footer">
			<button type="button" class="btn btn-default" data-dismiss="modal">Close
			</button>
		  </div>
		</div><!-- /.modal-content -->
	  </div><!-- /.modal -->
	</div>		

	<?php echo Yaf_View_Simple::render("footer.phtml"); ?>
  </body>
</html>
